package com.xiaoli.orderserver.controller;

import com.xiaoli.orderserver.service.IOrderService;
import com.xiaoli.orderserver.vo.SubmitOrderReqVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {


    @Autowired
    private IOrderService orderService;

    @PostMapping("submitOrder")
    public void submitOrder(@RequestBody SubmitOrderReqVO submitOrderReqVO) {
        orderService.submitOrder();
    }
}
